@extends('wechat.layouts.application')

@section('content')
    <div class="page-category" data-log="商品分类">

        <div class="page-category-wrap">

            @foreach($tags as $tag)
                <div class="list-wrap" id="m0">
                    <h3 class="list_title">{{$tag->name}}</h3>
                    <ol class="list_category">

                        @foreach($tag->children as $t)
                            <li onclick="location.href='/good?tag_id={{$t->id}}'">
                                <div class="img"><img src="{{$t->image}}"></div>
                                <div class="name"><span>{{$t->name}}</span></div>
                            </li>
                        @endforeach

                    </ol>
                </div>
            @endforeach
        </div>
        @include('wechat.layouts._footer')
    </div>
@endsection